﻿// ==UserScript==
// @name StatPressCN ip138
// @namespace http://veryue.com
// @description statpresscn ip index redirect to ip138
// @include http://blog.veryue.com/wp-admin/admin.php?page=statpresscn/statpresscn.php
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// @version 1.0
// ==/UserScript==

(function() {
	setTimeout(function() {
		$("a").each(function() {
			var href = $(this).attr("href");
			if (href && href.indexOf("www.youdao.com/smartresult-xml/search.s?type=ip&q=") != -1 {
				var newlink = href.replace("www.youdao.com/smartresult-xml/search.s?type=ip&q=","http://www.ip138.com/ips.asp?ip=");
				$(this).attr("href", newlink);
			}
		});
	}, 2000);
}());